DEBUG = False

CORS_ORIGIN_ALLOW_ALL = True

MYSQL_CONF = {
    'db': 'mysql://bigbang:n0ra@wang@103.230.243.203:3306/bigbang?charset=utf8',
    'DEBUG': DEBUG
}

SLAVE_CONF = {
    # 'db': 'mysql://bigbang:n0ra@wang@103.230.243.141:3306/bigbang?charset=utf8',
    'db': 'mysql://bigbang:n0ra@wang@103.230.243.203:3306/bigbang?charset=utf8',
    'DEBUG': DEBUG
}

ADMIN_CONF = {
    'db': 'mysql://bigbang:n0ra@wang@103.230.243.203:3306/bigbang_admin?charset=utf8',
    'DEBUG': DEBUG
}

METIS_MYSQL_CONF = {
    'db': 'mysql://admin:ST83wSNx398W97HP@103.71.50.18:3307/platform?charset=utf8',
    'DEBUG': DEBUG
}

MONGO_ADDR = '103.230.243.167:27017'

CELERY_BROKER = 'redis://103.230.243.233:6379//'

REDIS_HOST = '103.230.243.233'
REDIS_PORT = 6379

JUSTPAY_NOTIFY_URL = 'http://183.60.211.195:9001/api/v1/third/justpay/notify/'

JUSTPAY_MCH_ID = '6001000'
JUSTPAY_API_KEY = 'c1750f82442a4b65ba4fa55a8ee78848'
JUSTPAY_CHARGE_URL = 'http://witch.xyz115.com:9003/pay/api/charge/create/'
JUSTPAY_TRANS_URL = 'http://witch.xyz115.com:9003/pay/api/trans/create/'
JUSTPAY_TRANS_QUERY_CHANNELS = 'http://witch.xyz115.com:9003/pay/api/trans/query_channels/'
QUERY_URL = 'http://witch.xyz115.com:9003/pay/api/channel/get_vaild_pay_type/'

EXCHANGE_CALLBACK_URL = 'http://183.60.211.195:9001/exchange/'

UNIONAGENCY_NOTIFY_URL = 'http://183.60.211.195:9001/api/v1/third/unionagency/notify'
UNIONAGENCY_MCH_ID = '2'
UNIONAGENCY_API_KEY = 'b12f2adf9aca408983f6a5c5efdf30e7'
UNIONAGENCY_CHARGE_URL = 'http://14.29.47.193:9003/fin/api/charge/create'
UNIONAGENCY_GATEWAY_URL = 'http://14.29.47.193:9003/fin/api/gateway/'
UNIONAGENCY_FILL_URL = 'http://14.29.47.193:9003/fin/api/charge/fill'
UNIONAGENCY_CHARGE_URL_V2 = 'http://api.maiunion.net:9003/api/v2/recharge/create/'
UNIONAGENCY_GATEWAY_URL_V2 = 'http://183.60.211.151:9001/info/ChargeUnionAgent'
UNIONAGENCY_WITHDRAW_CHARGE_URL = 'http://14.29.47.193:9003/api/v2/withdraw/create/'
UNIONAGENCY_WITHDRAW_QUERY_URL = 'http://14.29.47.193:9003/api/v2/withdraw/query/'
UNIONAGENCY_WITHDRAW_NOTIFY_URL = 'http://183.60.211.195:9001/api/v1/third/unionagency/withdraw/notify/'
UNIONAGENCY_PAY_INFO_QUERY_URL = "http://api.maiunion.net:9003/api/v2/recharge/query/"


UNION_REDIS_HOST = '103.230.243.233'
UNION_REDIS_PORT = 6379

WEB_APP_ROOT_URL = 'http://183.60.211.151:9001'

ES_HOST = "http://103.230.243.40:9200"
MQ_HOST = '61.146.72.33'
MQ_USERNAME = 'admin'
MQ_PASSWORD = 'WCBQf4Bb4YFoNbgUtXaC'

QINIU_DOMAIN = 'http://{}.aqjxxkj.com/'
ADMIN_BUCKET_NAME = 'bigbang'

QINIU_BUCKETS = {
    'default': QINIU_DOMAIN.format('bigbang'),
    'avatar': QINIU_DOMAIN.format('avatar'),
    'show': QINIU_DOMAIN.format('show'),
}

METIS_URL = 'http://gs.kcvh79w.com:8001/api'
METIS_CONTROL_URL = 'http://gs.kcvh79w.com:8003/backend'
METIS_KEY = '378d6694-9c41-11e8-9d0b-42010a8c0002'
